Historical updating oE prompt_string, Revision 2
prompt_string
include console.e namespace console public function prompt_string(sequence prompt)
prompts the user to enter a string of text.
Parameters:
- prompt : is a string that will be displayed on the screen.
Returns:
A sequence, the string that the user typed in, stripped of any new-line character.
Comments:
If the user tries cancelling the prompt by hitting Control+Z, the program will abort, issuing a "Stopped" message.
Example 1:
include std/console.e sequence name = prompt_string("What is your name? ")
See Also:
Not Categorized, Please Help
|
- diff to current revision, view current revision history, backlinks
- Last modified Sep 11, 2019 by dr_can